const {
  DataTypes
} = require('sequelize');

module.exports = sequelize => {
  const attributes = {
    linkurl: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "linkurl"
    },
    linkname: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "linkname"
    },
    linkhead: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "linkhead"
    },
    linkid: {
      type: DataTypes.STRING(255),
      allowNull: false,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "linkid"
    },
    linkdetail: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "linkdetail"
    },
    linkshow: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "linkshow"
    }
  };
  const options = {
    tableName: "links",
    comment: "",
    indexes: []
  };
  const LinksModel = sequelize.define("links_model", attributes, options);
  return LinksModel;
};